package com.usian.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.usian.mapper.LocalMessageMapper;
import com.usian.pojo.LocalMessage;
import com.usian.service.LocalMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author chen
 * @date 2021/1/29 - 18:07 - 星期五
 * @project usian_parent
 * @package com.usian.service.Impl
 * @by GGbomd猪猪侠
 */
@Service
@Transactional
public class LocalMessageServiceImpl implements LocalMessageService {

    @Autowired
    private LocalMessageMapper localMessageMapper;

    @Override
    public List<LocalMessage> selectlocalMessageByStatus() {
        QueryWrapper<LocalMessage> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("state",1);
        return localMessageMapper.selectList(queryWrapper);
    }
}
